package org.sxp.common.enums;

/**
 * @author shenxingping
 * @date 2021/12/31
 */
public enum JobTypeEnum {
    sync(1),
    develop(2),
    flow(3);


    private Integer code;

    JobTypeEnum(Integer code){
        this.code = code;
    }

    public static JobTypeEnum getType(Integer code) {
        for (JobTypeEnum type : JobTypeEnum.values()) {
            if (type.getCode().equals(code)) {
                return type;
            }
        }
        return null;
    }


    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
